home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
editor
/
frexxed
/
fpl
/
showchanged.fpl
< prev
next >
Wrap
Text File
|
1995-07-18
|
690b
|
31 lines
export int ShowAllChanged() /* Show all changed buffers */
{
int firstid=GetBufferID();
int id=firstid;
string files[ReadInfo("buffers")];
int count=0;
string togoto="";
do {
if (ReadInfo("changes", id))
files[count++]=ReadInfo("file_name", id);
id=NextBuffer(id);
if (id == firstid)
id=0;
} while (id);
if (count) {
Sort(&files, count);
RequestWindow("Changed files", "", "A", &files, &togoto, count);
if (strlen(togoto)) {
id=GetBufferID(togoto);
if (id) {
CurrentBuffer(id);
Activate(id);
}
}
} else
ReturnStatus("No files changed!");
}
AssignKey("ShowAllChanged();", "Amiga Control c");